
<block name="side">
    <div class="sidebar">
        <ul class="side-nav">
            <li >
                <a href="{:U('Home/'.$controller.'/add')}" <if condition="$action eq 'add'">class="active"</if> ><i class="fa-new"></i> 添加记录</a>
            </li>
            <li>
                <a href="{:U('Home/'.$controller.'/index')}"  <if condition="$action eq 'index'">class="active"</if> ><i class=" fa-history"></i> 历史记录</a>
            </li>
            <li>
                <a href="{:U('User/profile')}" <if condition="$action eq 'profile'">class="active"</if> ><i class="fa-pass"></i> 修改密码</a>
            </li>
            <li>
                <a href="{:U('User/logout')}" <if condition="$action eq 'logout'">class="active"</if> ><i class="fa-back"></i> 退出系统</a>
            </li>
        </ul>
    </div>
</block>
<block name="body"></block>

<script type="text/javascript">
    $(function(){
        $(window).resize(function(){
            $("#main-container").css("min-height", $(window).height() - 343);
        }).resize();
    })
</script>
